import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    redirect: "/Denlu",
  },
  {
    path: "/Denlu",
    name: "Denlu",
    component: () => import("../views/Denlu/index.vue"),
  },
  {
    path: "/Index",
    name: "Index",
    redirect: "/Home",
    component: () => import("../views/Index/index.vue"),
    children: [
      {
        path: "/Home",
        name: "Home",
        component: () => import("../views/Home/index.vue"),
      },
      {
        path: "/List",
        name: "List",
        component: () => import("../views/List/index.vue"),
      },
      {
        path: "/Many",
        name: "Many",
        component: () => import("../views/Many/index.vue"),
      },
    ],
  },
  {
    path: "/Shousuo",
    name: "Shousuo",
    component: () => import("../views/Shousuo/index.vue"),
  },
  {
    path: "/Detu",
    name: "Detu",
    component: () => import("../views/Detu/index.vue"),
  },
  {
    path: "/quzhuke",
    name: "quzhuke",
    component: () => import("../views/quzhuke/index.vue"),
  },
  {
    path: "/Biaoge",
    name: "Biaoge",
    component: () => import("../views/Biaoge/index.vue"),
  },
  // {
  //   path: "/",
  //   name: "Home",
  //   component: Home,
  // },
  // {
  //   path: "/about",
  //   name: "About",
  //   component: () => import("../views/About.vue"),
  // },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
